#encoding=utf-8

import tensorflow as tf

input1 = tf.constant(3,0)
input2 = tf.constant(2,0)
input3 = tf.constant(5,0)

add = tf.add(input2,input3)
mu1 = tf.multiply(input1,add)

with tf.Session() as sess:
    result = sess.run([mu1,add])
    print(result)

#创建占位符
input4 = tf.placeholder(tf.float32)
input5 = tf.placeholder(tf.float33)
output = tf.multiply(input4,input5)

with tf.Session() as sess2:
    print(sess2.run(output,feed_dict={input4:[7.], input5:[2.]}))